import axios from '@/util'; 

import type {
  fuFeiGuShiResultDto,
  WenBenHeYinPinSheBeiCanShu,
  biaoQianIcon,
  fuFeiGuShiToAiDto,
  zuiJinYueDuEntity,
  fuFeiGuShiShengChengZhuangTaiEntity,
  UserStoryGenerationStatusListDto,
  UserEntity,
  fuFeiGuShiEntity,
} from './typings';



/**
 * 获取付费故事列表 GET /api/fuFeiGuShiController
 */
export async function get_api_fufeigushicontroller (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<fuFeiGuShiResultDto> {
  return axios({
    method: 'GET',
    url: `/api/fuFeiGuShiController`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 创建付费故事 POST /api/fuFeiGuShiController
 */
export async function post_api_fufeigushicontroller (
  data: {
    /**  */
    id?: string;
    /**  */
    wenBenHeYinPinSheBeiCanShu?: WenBenHeYinPinSheBeiCanShu__;
    /**  */
    biaoTi?: string;
    /**  */
    biaoQianIcon?: biaoQianIcon__;
    /**  */
    keYong?: boolean;
    /**  */
    uuid?: string;
    /**  */
    business?: string;
    /**  */
    shengChengYinPinUrlArr?: any____;
    /**  */
    fuFeiGuShiToAiDto?: fuFeiGuShiToAiDto;
    /**  */
    forDaBao?: boolean;
    /**  */
    guShiMianFei?: boolean;
    /** 新创建故事的url */
    xinChuangJianGuShiUrl?: string;
    /** 创建故事的图片的url */
    mianFeiSuiJiTuPian?: string;
  },
  options?: Record<string, any>,
): Promise<zuiJinYueDuEntity> {
  return axios({
    method: 'POST',
    url: `/api/fuFeiGuShiController`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 创建免费故事 POST /api/fuFeiGuShiController/chuangJianMianFeiGushi
 */
export async function post_api_fufeigushicontroller_chuangjianmianfeigushi (
  data: {
    /**  */
    id?: string;
    /**  */
    wenBenHeYinPinSheBeiCanShu?: WenBenHeYinPinSheBeiCanShu__;
    /**  */
    biaoTi?: string;
    /**  */
    biaoQianIcon?: biaoQianIcon__;
    /**  */
    keYong?: boolean;
    /**  */
    uuid?: string;
    /**  */
    business?: string;
    /**  */
    shengChengYinPinUrlArr?: any____;
    /**  */
    fuFeiGuShiToAiDto?: fuFeiGuShiToAiDto;
    /**  */
    forDaBao?: boolean;
    /**  */
    guShiMianFei?: boolean;
    /** 新创建故事的url */
    xinChuangJianGuShiUrl?: string;
    /** 创建故事的图片的url */
    mianFeiSuiJiTuPian?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/fuFeiGuShiController/chuangJianMianFeiGushi`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 获取故事生成状态 GET /api/fuFeiGuShiController/getStoryStatus
 */
export async function get_api_fufeigushicontroller_getstorystatus (
  options?: Record<string, any>,
): Promise<fuFeiGuShiShengChengZhuangTaiEntity> {
  return axios({
    method: 'GET',
    url: `/api/fuFeiGuShiController/getStoryStatus`,
    ...(options || {}),
  })
}

/**
 * 获取用户未提示的故事生成状态 GET /api/fuFeiGuShiController/getUserStoryGenerationStatus
 */
export async function get_api_fufeigushicontroller_getuserstorygenerationstatus (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<UserStoryGenerationStatusListDto> {
  return axios({
    method: 'GET',
    url: `/api/fuFeiGuShiController/getUserStoryGenerationStatus`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 修改故事生成状态 PUT /api/fuFeiGuShiController/modifyStoryStatus
 */
export async function put_api_fufeigushicontroller_modifystorystatus (
  data: {
    /**  */
    id?: number;
    /**  */
    email?: string;
    /**  */
    status?: string;
    /**  */
    uuid?: string;
    /**  */
    tiShiGuoYongHuLe?: boolean;
    /** 创建时间用于数据库表的 */
    chuangJianShiJianOrigin?: string;
    /**  */
    geiAiDeCanShu?: any;
    /**  */
    user?: UserEntity;
    /**  */
    lockString?: string;
  },
  options?: Record<string, any>,
): Promise<fuFeiGuShiShengChengZhuangTaiEntity> {
  return axios({
    method: 'PUT',
    url: `/api/fuFeiGuShiController/modifyStoryStatus`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 批量修改故事生成状态 PUT /api/fuFeiGuShiController/batchModifyStoryStatus
 */
export async function put_api_fufeigushicontroller_batchmodifystorystatus (
  data: {
    /**  */
    ids?: string__;
  },
  options?: Record<string, any>,
): Promise<fuFeiGuShiShengChengZhuangTaiEntity> {
  return axios({
    method: 'PUT',
    url: `/api/fuFeiGuShiController/batchModifyStoryStatus`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 根据ID获取付费故事 GET /api/fuFeiGuShiController/{id}
 */
export async function get_api_fufeigushicontroller__id_ (
  pathVars: {
    /**  */
    id: any;
  },
  options?: Record<string, any>,
): Promise<fuFeiGuShiEntity> {
  return axios({
    method: 'GET',
    url: `/api/fuFeiGuShiController/${pathVars.id}`,
    ...(options || {}),
  })
}
